import {
	PageView
} from '@/layouts';

export default {
	path: '/stock',
	name: 'stock',
	redirect: '/stock/ProductName',
	component: PageView,
	meta: {
		title: '库存管理',
		icon: 'stock',
		permission: [ 'stockControl' ]
	},
	children: [{
			path: '/stock/ProductName',
			name: 'StockProductNameForm',
			component: () => import('@/views/stock/ProductName'),
			meta: {
				title: '品名管理',
				permission: [ 'goods_list' ]
			},
		},
		{
			path: '/stock/EnteringVehicle',
			name: 'StockEnteringVehicleForm',
			component: () => import('@/views/stock/EnteringVehicle'),
			meta: {
				title: '进窑登记',
				permission: [ 'stock_add' ]
			},
		},
		{
			path: '/stock/registrationRecord',
			name: 'registrationRecord',
			component: () => import('@/views/stock/registrationRecord'),
			meta: {
				title: '登记记录',
				permission: [ 'stock_list' ]
			},
		},
		{
			path: '/stock/Quarantine',
			name: 'Quarantine',
			component: () => import('@/views/stock/Quarantine'),
			meta: {
				title: '待检统计',
				permission: [ 'stock_checkStock' ]
			},
		},
		{
			path: '/stock/Production',
			name: 'StockProductionForm',
			component: () => import('@/views/stock/Production'),
			meta: {
				title: '已检记录',
				permission: [ 'stock_checkStock' ]
			},
		},
		// {
		// 	path: '/stock/Statistics',
		// 	name: 'Statistics',
		// 	component: () => import('@/views/stock/Statistics'),
		// 	hidden: true,
		// 	meta: {
		// 		title: '已检统计',
		// 	},
		// },
	],
};
